#pragma once

#include "IPrimitive.h"
#include "CVector3f.h"

class CPrimTore : public IPrimitive
{
private:
	float m_bigRadius;
	float m_smallRadius;

public:
	CPrimTore(float bigRadius, float smallRadius);
	~CPrimTore();
	
	bool intersect(const CRay& ray, float& dist, bool useGlobalCoordinates);
	void computeNormal(const CRay& ray, float dist, CVector3f& normal)const;
	bool isInside(const CVector3f& p)const;

};